package com.test.map.Users;

import org.json.JSONException;
import org.json.JSONObject;

public class Order_client {
    private String destLatitude;
    private String destLongitude;
    private String destName;
    private String did;
    private String driverLatitude;
    private String driverLongitude;
    private String endTime;
    private String orderid;
    private String sourceLatitude;
    private String sourceLongitude;
    private String sourceName;
    private String startTime;
    private String status;
    private String uid;

    public String getDestLatitude(){return destLatitude;}
    public void setDestLatitude(String destLatitude){this.destLatitude=destLatitude;}

    public String getDestLongitude(){return  destLongitude;}
    public void setDestLongitude(String destLongitude){this.destLongitude=destLongitude;}

    public String getDestName(){return destName;}
    public void setDestName(String destName){this.destName=destName;}

    public String getDid(){return did;}
    public void setDid(String did){this.did=did;}

    public String getDriverLatitude(){return driverLatitude;}
    public void setDriverLatitude(String driverLatitude){this.driverLatitude=driverLatitude;}

    public String getDriverLongitude(){return  driverLongitude;}
    public void setDriverLongitude(String driverLongitude){this.driverLongitude=driverLongitude;}

    public String getEndTime(){return endTime;}
    public void setEndTime(String endTime){this.endTime=endTime;}

    public String getOrderid(){return orderid;}
    public void setOrderid(String orderid){this.orderid=orderid;}

    public String getSourceLatitude(){return sourceLatitude;}
    public void setSourceLatitude(String sourceLatitude){this.sourceLatitude=sourceLatitude;}

    public String getSourceLongitude(){return  sourceLongitude;}
    public void setSourceLongitude(String sourceLongitude){this.sourceLongitude=sourceLongitude;}

    public String getSourceName(){return sourceName;}
    public void setSourceName(String sourceName){this.sourceName=sourceName;}

    public String getStartTime(){return  startTime;}
    public void setStartTime(String startTime){this.startTime=startTime;}

    public String getStatus(){return status;}
    public void setStatus(String status){this.status=status;}

    public String getUid(){return  uid;}
    public void setUid(String uid){this.uid=uid;}

    public Order_client parsing(JSONObject jsonObject){
        Order_client order_client=new Order_client();
        try {
            order_client.setDestLatitude(jsonObject.getString("destLatitude"));
            order_client.setDestLongitude(jsonObject.getString("destLongitude"));
            order_client.setDestName(jsonObject.getString("destName"));
            order_client.setDid(jsonObject.getString("did"));
            order_client.setDriverLatitude(jsonObject.getString("driverLatitude"));
            order_client.setDriverLongitude(jsonObject.getString("driverLongitude"));
            order_client.setEndTime(jsonObject.getString("endTime"));
            order_client.setOrderid(jsonObject.getString("orderid"));
            order_client.setSourceLatitude(jsonObject.getString("sourceLatitude"));
            order_client.setSourceLongitude(jsonObject.getString("sourceLongitude"));
            order_client.setSourceName(jsonObject.getString("sourceName"));
            order_client.setStartTime(jsonObject.getString("startTime"));
            order_client.setStatus(jsonObject.getString("status"));
            order_client.setUid(jsonObject.getString("uid"));
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return order_client;
    }

}
